﻿using System;

namespace SARS.Entity
{
    public class CourseEntity
    {
        public Int32 CourseID { get; set; }
        public string CourseName { get; set; }
        public string CourseType { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public Int32 Status { get; set; }
        public Int32 ProgramID { get; set; }
        public Int32 CoordinatorID { get; set; }

        public ProgramEntity Program { get; set; }
        public CoordinatorEntity Coordinator { get; set; }

        public string CourseInfo
        {
            get
            {
                return string.Format("{0} ({1}: {2} - {3})", CourseName, CourseType, StartDate.ToShortDateString(),
                    EndDate.ToShortDateString());
            }
        }
    }
}